//
//  SILightInfo.m
//  BlueToothSDK
//
//  Created by Piccolo on 2017/11/11.
//  Copyright © 2017年 Piccolo. All rights reserved.
//

#import "SILightInfo.h"

@implementation SILightInfo

//- (instancetype)initWithLightMode:(NSSILightMode)mode
//                  brightnessValue:(NSUInteger)brightnessValue
//                   colorTempValue:(NSUInteger)colorTempValue
//                           onTime:(NSDate *)onTime
//                          offTime:(NSDate *)offTime {
//
//    self = [super init];
//    if (self) {
//        _mode = mode;
//        _brightnessValue = brightnessValue;
//        _colorTempValue = colorTempValue;
//        _onTime = onTime;
//        _offTime = offTime;
//    }
//    return self;
//}

- (instancetype)initWithLightMode:(NSSILightMode)mode
                  brightnessValue:(NSUInteger)brightnessValue
                   colorTempValue:(NSUInteger)colorTempValue
                    lightTimeInfo:(SILightTimeInfo *)lightTimeInfo
               lightAddtionalInfo:(SILightAddtionalInfo *)lightAddtionalInfo {
    
    self = [super init];
    if (self) {
        _mode = mode;
        _brightnessValue = brightnessValue;
        _colorTempValue = colorTempValue;
        _lightTimeInfo = lightTimeInfo;
        _lightAddtionalInfo = lightAddtionalInfo;
        
    }
    return self;
}

- (id)copyWithZone:(NSZone *)zone {
    
    id copy = [[[self class] alloc] init];
    
    if (copy) {
        // Copy NSObject subclasses
        [copy setMode:_mode];
        [copy setBrightnessValue:_brightnessValue];
        [copy setColorTempValue:_colorTempValue];
        [copy setLightTimeInfo:[_lightTimeInfo copyWithZone:zone]];
        [copy setLightAddtionalInfo:[_lightAddtionalInfo copyWithZone:zone]];
    }
    return copy;
}


@end
